package org.example;


public class Main {
    public static void main(String[] args) {
        Order order=new Order(100.0,PaymentStrategy.PAYPAL);
        Order order1=new Order(50.0,PaymentStrategy.BANK_TRANSFER);
        Order order2=new Order(30.0,PaymentStrategy.CREDIT_CARD);
        order.processPayment();
        order1.processPayment();
        order2.processPayment();
        System.out.println("----------------------");
        demo notificationAuditApprove = demo.NOTIFICATION_AUDIT_APPROVE;
        System.out.println(notificationAuditApprove.getCode());
        notificationAuditApprove.pay();

        System.out.println("----------------------");
        demo demo2 = org.example.demo.getDemo(1);
        demo2.pay();

    }
}